#ifndef DEMUXER
#define DEMUXER

#include "format.h"
extern "C"
{
#include <libavformat/avformat.h>
}

namespace lcf
{
    class Demuxer : public Format
    {
    public:
        /// 打开解封装
        static AVFormatContext *Open(const char *url);

        /// 读取一帧数据
        bool Read(AVPacket *pkt);

        bool Seek(long long pts, int stream_index);
    };

}

#endif